package rsb21118.ningwei.lianxi;

public class Demo03 {
    public static class Sum
    {
        public int sum(int a,int b)
        {
            return a+b;
        }
        public int sum(int a,int b,int c)
        {

            return a+b+c;
        }


    }
    public static void main(String[] args) {
        Sum s = new Sum();
        System.out.println("两个数的和="+s.sum(1,2));
        System.out.println("三个数的和="+s.sum(1,2,3));

    }
}
